
===============================
//
//	Tournament script plan
//
//	Purpose of the script(s)
//	is to add a competive action
//	packed gamemodes like deathmatch
//	and such to Cortex Command.
//
===============================


---------
//Basic//
---------

=Round Time Limit.
.when time is out, end game


=Kill Limit.
.when a player reaches goal, end game


=Point Limit.
.When enough flag captures made, end game
.When enough monsters have been killed, end game


=Life Limit.
.if no more lives, player is out of the game and set to spectator mode


=Spawning.
.areas for spawning places (Underground maps. Area name is "SpawnZone")
.if no areas (usually areas are in underground maps only), spawn by dropping in a strike pod from above at any horizontal point accross the map
.player is a normal merc, not hero variant. (If the player has to be a brain due to scripting limitation, it can be a hero type, but usually use the normal merc. Hero has a revolver always pre-equipped you see.)
.give spawning player 2 random weapons. 
-
+one from a list of minor sidearms and melee.
+second from a list from all other weapons.
-


=Warm up(?)
.before the match will start, user must press any key to begin.
.before starting the match, give a 10 second delay to announce a deathmatch is about to begin.
-
+for 7 first seconds, show text "Ballistic Weapons Tournament" and under or next to, show text "[gamemode]" (where gamemode is either: deathmatch, melee match, survival, horde hunter)
+during the 10 seconds also show text: "Get ready:...[seconds left]" and as the last seconds count down, show them in the [seconds left].
+once warm up is over, begin game.
-


=2-4-player deathmatch.
.every player is independent and has their own scores
.said players can be set to be AI controlled to hunt other nearest actors if no human player is present to use it.


=Bots.
.Human players and bot players are different
-
+Maximum 4 humans can play at once. Bots do not take their slots.
+Humans are belong to "human players" group and this group is belong to "players".
+Bots can be any number. You could say they are additional players rather than actual players.
+Bots are belong to "bot players" group and this group is belong to "players". And "players" give points to killers when killed.
+Bot's goal is: Check for nearest actor from own position and hunt him down using "brain hunt AI" style. Aka move to nearest player and kill him.
-


=Killing.
.give point to killer, do note that a point is awarded if player or bot is killed. Other actors like the ones in "random events" do not count as kills in death match.
.kills in horde hunter game mode(see special for more) : Kill player = -100 points. Kill horde enemy/or any other = +10 points.
.show name of killed player (as in "Player 2 got wasted") at top of screen. 5 lines max at once.
.if possible to above, have multiple random kill messages to replace the last word like: "Player 2 got fragged, nuked, pwned, slayed, murdered ect. ect."



-----------
//Special//
-----------


=Announcer.
.headshot - when a Merc Head X attachable is gibbed, play "headshot" sound.
.killing spree - keeps track of a players kill count and at every 5 kills, without dying, play "killing spree" sound.
.multiple kills - keep track of players recent kills and if player manages to kill 2 or more targets within 5 seconds from last kill, play "multikill" sound.
.time remaining - when 5,3,2,1 minutes remain, play a "X minute(s) remain" sound.
.end game announcement - see "end game" section below


=Random events
-A random event occurs with a 20% chance each 5 or 10 minutes in a match. If they do happen, select a random one from the list of events and activate it. Can be disabled for serious skill competition matches if necesary.
.airstrike (Check if map not sealed by terrain from the top, and then one-by-one spawn a falling dropship bomb every 100 pixels accross the horizontal lenght of the map, starting from 0 point of the map so it looks like a bombing run.)
.radiation health decreasing (certain duration. 1-5mins? -1hp/s)
.tradestar police attack (coalition troops with guns and hunt nearest players)
.displacement bomb (10 teleport bombs are spawned and gibbed instantly.)
.lightweight (all actors will have their mass reduced 4x for a duration of 3-5 minutes)
.pasifism! (every weapon on ground and inventories are instantly deleted, players forced to find new guns or headbutt opponents.)
.jump! (all players will be launched once upwards at speed 20)



=Game modes.
-Have seperate files for each game mode. The user can select the script he wants either ingame or outgame. Whichever is possible.

.death match (normal, kill other players to gain score/reach either kill or time limit)

.team dm (TEAM GAME, like deathmatch, except with teams and kills are shared. Kill limit usually higher than solo deathmatch.)

.melee match (deathmatch but with only knife, saw and katana are available when you spawn, ignore/remove/disable weapon and bomb station modules. They are MOSR so it should be easy.)

.survival mode (death match, but with a lives limit. once no lives, dont spawn player and announce he's out. Set play to spectate once he's gone.)

.capture the flag (TEAM GAME. goal is to capture the enemy flag and bring it to your own flag.)
-
+Upon touching/getting close to a flag object, make it stick behind the actor and stay there. If player is killed, the flag is released and dropped.
+If flag taken from opposing team by a player/bot, show a message: "[Team color] flag taken!"
+If enemy flag brought to own flag, increase score by 1 and show a message: "[Team color] scores!"
+If friendly flag brough back to base, show message: "[Team color] flag returned!"
+If flag is destroyed by accident (goes out of map or is left on the ground untouched for 1 minute), move it back to its base.
+By a certain key combo or binded button, throw flag forward at 15 speed.

+! Alternative: If dropped friendly flag is touched, flag will return immediatly to base.
-

.horde hunter (players fight against constant armies of skirmish activity units. Time or kill limit apply here. Wont work on underground maps too well.)
-
+If killing a player, reduce 100 points from killer.
+If horde enemy killed, add 10 points to killer.
+Players have lives. (Optional and can be toggle'd on/off by the user through the script file. This feature is of great use when there is only one player. It is challenging to fight horder of enemies while staying alive.)
-



------------
//End game//
------------

=Draw game
.time limit hits the end and no one has a higher score
.gib everyone just for kicks ;)


=Announce winner.
.play announcer sound "Game end/Winner/Round over"
.show winner's name("Player 1" for example) and his score.
.after a delay of 6 seconds show the list of player with their scores sorted from highest at top.


=Show list of players and their scores. 
.show the list after a delay of 6 seconds after the winner has been announced and showed.
.sort the list of player from highest with the highest score and down to the lowest score.


=Change music to CC default "Win theme"
(Might get a some song for this, you can suggest one too!)




-----------------------------
-------------EOF-------------
-----------------------------